import { Pool, Client } from 'pg';
import conf from '../config';

export const pool = new Pool({
  user: conf.PostgreSQL.user,
  host: conf.PostgreSQL.host,
  database: conf.PostgreSQL.database,
  password: conf.PostgreSQL.password,
  port: conf.PostgreSQL.port,
})

pool.query('SELECT * FROM SHOPMAN_INFO', (err:any, res) => {
  console.log(res)
  pool.end()
})
